package com.ym.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.ColumnComment;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.annotation.Unique;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;

@Data
@Table
@TableComment("定价规则表")
public class DmPricingRule {

    //规则类型(1-出售,2-续费,3-转出)
    public static final int RULE_TYPE_SELL = 1;
    public static final int RULE_TYPE_RENEW = 2;
    public static final int RULE_TYPE_TRANSFER = 3;

    @TableId(type = IdType.ASSIGN_ID)
    @IsKey
    @Column
    @ColumnComment("主键ID")
    private Long id;

    @Unique
    @Column(length = 30)
    @ColumnComment("域名后缀")
    private String domainSuffix;

    @Column
    @ColumnComment("规则类型(1-出售,2-续费,3-转出)")
    private Short ruleType;

    @Column
    @ColumnComment("规则类型(0-固定,1-百分比)")
    private Short pricingType;

    @Column
    @ColumnComment("增加值")
    private Short addValue;

}
